package cn.wsxiot.webdemo.controller;

import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/pages")
public class HomeController {

    @ApiOperation("网站主界面")
    @GetMapping("/index")
    public String home(){
        return "index";
    }

    @ApiOperation("上传文件界面")
    @GetMapping("/upload")
    public String upload(){
        return "upload";
    }
}
